package net.comm.oper.web.form;

import net.comm.page.PageCtr;

import org.apache.struts.action.*;
import org.apache.struts.upload.FormFile;


public class NotAdvForm extends ActionForm {

	private static final long serialVersionUID = 1L;
	private static final String KEY_SPLIT = "#,##,#,#,#";

	private int  	QrySeqID;		//	序号
	private String  QryNsort;		//所属板块
	private String  QryNtype;		//类型
	private int  	QryVillageID;	//	社区ID
	private int  	QryNsortID;		//	板块内容ID
	private String  QryContent;		//	发贴/跟贴内容

	private int  	SeqID;			//	序号
	private int  	FollID;			//	跟贴序号
	private String  Ntype;			//	类型
	private String  Title;			//	标题
	private String  Introduction;	//	简介
	private String  Content;		//	发贴/跟贴内容
	private int  	F_ID;			//	附件ID
	private String  Nsort;			//	所属板块
	private int  	NsortID;		//	板块内容ID
	private String  Up;				//	是否置顶
	private String  Status;			//	状态
	private int  	Attachcnt;		//	点击次数
	private int  	Replycnt;		//	回复次数
	private int  	UserID;			//	会员ID
	private String  	UserName;			//	会员名
	private String  IP;				//	用户IP
	private String  Mtime;			//	最后修改时间
	
	private FormFile  Filepath;		//	

	private String  Tsfr;		//	投诉来源  1：
	private int  	TsfrID;		//	投诉ID：
	
	private String action = "";
	
	
	public NotAdvForm() {
		super();
		// TODO Auto-generated constructor stub
		Clear();
	}
	public void Clear() {
	
		QryNsort = "";		//所属板块
		QryNtype = "";		//类型
		QryNsortID = 0;
		QryContent = "";
		QryVillageID = 0;
		QrySeqID = 0;
		
		SeqID = 0;			//	序号
		FollID = 0;			//	跟贴序号
		Ntype = "";			//	类型
		Title = "";			//	标题
		Introduction = "";	//	简介
		Content = "";		//	发贴/跟贴内容
		F_ID = 0;			//	附件ID
		Nsort = "";			//	所属板块
		NsortID = 0;		//	板块内容ID
		Up = "";				//	是否置顶
		Status = "";			//	状态
		Attachcnt = 0;		//	点击次数
		Replycnt = 0;		//	回复次数
		UserID = 0;			//	会员ID
		IP = "";			//	用户IP
		Mtime = "";			//	最后修改时间	
		UserName="";
		Tsfr = "";
		TsfrID = 0;
		
		Filepath = null;
	}
	/**
	 * 查询当前页主键值串
	 */
	private String key = "";

	/**
	 * 查询上上页主键值串
	 */
	private String lastKey = "";
	

	/**
	 * 分页控制对象
	 */
	private PageCtr page;
	



	public PageCtr getPage() {
		return page;
	}

	public void setPage(PageCtr page) {
		this.page = page;
	}
	
	/**
	 * @param key the key to set
	 */
	public void setKey(String key) {
		this.key = key;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String[] array) {
		if(key != null && key.trim().length() > 0) {
			key = "";
		}
		
		StringBuffer keyBuff = new StringBuffer();
		for (int i = 0; i < array.length; i++) 
		{
			/**
			 * 防止空字符串引起的split方法异常
			 */
			if(array[i] == null || array[i].length() == 0) {
				keyBuff.append(" ");
			} else {
				keyBuff.append(array[i]);
			}
			
			keyBuff.append(KEY_SPLIT);
		}
		
		key = keyBuff.toString();		
	}
	
	/**
	 * 获取lastKey值
	 * @return
	 */
	public String[] lastKey()
	{
		if(lastKey == null || lastKey.trim().length() == 0) {
			return null;
		}
		
		return lastKey.split(KEY_SPLIT);
	}
	
	public String getLastKey() {
		return lastKey;
	}

	public void setLastKey(String lastKey) {
		this.lastKey = lastKey;
	}	

	public String getAction() {
		return action;
	}
	public void setAction(String action) {
		this.action = action;
	}

	public static String getKEY_SPLIT() {
		return KEY_SPLIT;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}


	public int getUserID() {
		return UserID;
	}

	public void setUserID(int userID) {
		UserID = userID;
	}
	
	public String getUserName() {
		return UserName;
	}
	
	public void setUserName(String userName) {
		UserName = userName;
	}
	

	public String getContent() {
		return Content;
	}

	public void setContent(String content) {
		Content = content;
	}

	public String getQryNsort() {
		return QryNsort;
	}

	public String getQryNtype() {
		return QryNtype;
	}

	public int getSeqID() {
		return SeqID;
	}

	public int getFollID() {
		return FollID;
	}

	public String getNtype() {
		return Ntype;
	}

	public String getTitle() {
		return Title;
	}

	public String getIntroduction() {
		return Introduction;
	}

	public int getF_ID() {
		return F_ID;
	}

	public String getNsort() {
		return Nsort;
	}

	public int getNsortID() {
		return NsortID;
	}

	public String getUp() {
		return Up;
	}

	public String getStatus() {
		return Status;
	}

	public int getAttachcnt() {
		return Attachcnt;
	}

	public int getReplycnt() {
		return Replycnt;
	}

	public String getIP() {
		return IP;
	}

	public String getMtime() {
		return Mtime;
	}

	public void setQryNsort(String qryNsort) {
		QryNsort = qryNsort;
	}

	public void setQryNtype(String qryNtype) {
		QryNtype = qryNtype;
	}

	public void setSeqID(int seqID) {
		SeqID = seqID;
	}

	public void setFollID(int follID) {
		FollID = follID;
	}

	public void setNtype(String ntype) {
		Ntype = ntype;
	}

	public void setTitle(String title) {
		Title = title;
	}

	public void setIntroduction(String introduction) {
		Introduction = introduction;
	}

	public void setF_ID(int f_id) {
		F_ID = f_id;
	}

	public void setNsort(String nsort) {
		Nsort = nsort;
	}

	public void setNsortID(int nsortID) {
		NsortID = nsortID;
	}

	public void setUp(String up) {
		Up = up;
	}

	public void setStatus(String status) {
		Status = status;
	}

	public void setAttachcnt(int attachcnt) {
		Attachcnt = attachcnt;
	}

	public void setReplycnt(int replycnt) {
		Replycnt = replycnt;
	}

	public void setIP(String ip) {
		IP = ip;
	}

	public void setMtime(String mtime) {
		Mtime = mtime;
	}

	public FormFile getFilepath() {
		return Filepath;
	}

	public void setFilepath(FormFile filepath) {
		Filepath = filepath;
	}

	public int getQryNsortID() {
		return QryNsortID;
	}

	public void setQryNsortID(int qryNsortID) {
		QryNsortID = qryNsortID;
	}
	public String getQryContent() {
		return QryContent;
	}
	public void setQryContent(String qryContent) {
		QryContent = qryContent;
	}
	public int getQryVillageID() {
		return QryVillageID;
	}
	public void setQryVillageID(int qryVillageID) {
		QryVillageID = qryVillageID;
	}
	public int getQrySeqID() {
		return QrySeqID;
	}
	public void setQrySeqID(int qrySeqID) {
		QrySeqID = qrySeqID;
	}
	public String getTsfr() {
		return Tsfr;
	}
	public void setTsfr(String tsfr) {
		Tsfr = tsfr;
	}
	public int getTsfrID() {
		return TsfrID;
	}
	public void setTsfrID(int tsfrID) {
		TsfrID = tsfrID;
	}

	
}